<?php
$sql = "SELECT * FROM #__menu WHERE published=1 AND menutype='menubottom' ORDER BY ordering ASC, id DESC";
$database->setQuery($sql);
$listMenu = $database->loadObjectList();
?>
<p>
	<?php
	 for ($i=0; $i<count($listMenu); $i++){
	 	if ($i==(count($listMenu)-1)){
			$style = '';			
		}else{
			$style = '|';			
		}		
		?>		
		<a href="<?php echo $listMenu[$i]->link;?>"><?php echo $listMenu[$i]->name;?></a><?php echo $style;?>		
		<?php
	 }
	?>	
</p>